import 'package:flutter/material.dart';
import 'package:get/get.dart';

class CenterPage extends StatefulWidget {
  const CenterPage({Key? key}) : super(key: key);

  @override
  _CenterPageState createState() => _CenterPageState();
}

class _CenterPageState extends State<CenterPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('123'),
      ),
      body: ListView(
        children: [
          Text('你好，你好'),
          ElevatedButton(
              onPressed: (){
                Get.toNamed('/obx1');
              },
              child: Text('点击'),
          ),
        ],
      ),
    );
  }
}
